import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 故障分类
 * */
// 创建
export const spinFaultTypeCreate = (data) => postRequest('/spin/fault-type/create', data);

// 更新
export const spinFaultTypeUpdate = (data) => putRequest('/spin/fault-type/update', data);

// 删除
export const spinFaultTypeDelete = (params) => deleteRequest('/spin/fault-type/delete', params);

// 获得
export const spinFaultTypeGet = (params) => getRequest('/spin/fault-type/get', params);

// 获得分页
export const spinFaultTypePage = (params) => getRequest('/spin/fault-type/page', params);

// 导出 Excel
export const spinFaultTypeExportExcel = (params) => getRequest('/spin/fault-type/export-excel', params);
